#2.1
s1='The Spring is coming! We go into April happily. We hope less homework and less test .Be better all!!! 12345…'
s2='hahahahaha'

def strUse():
    s3 = s1 + s2
    print(s3)
    s3 = s3.replace('h','r')
    print(s3)
    str = input("请输入你的内容:")
    print(s1.find(str))
    ls1 = s1.split(' ')
    print(len(ls1))
    ls1[1:-2]
    ls1.append('I love today!')
    print(ls1)

strUse()

up,low,num,other = 0,0,0,0

for i in s1:
    if i.isdigit():
        num += 1
    elif i.islower():
        low += 1
    elif i.isupper():
        up += 1
    else:
        other += 1

result = {
    "大写字母":up,
    "小写字母":low,
    "数字":num,
    "其他":other
    }

print(str(result))